import cflw数学_矩阵 as 矩阵
def f相乘():
	m1 = 矩阵.S矩阵4([
		1, 0, 0, 0, 
		0, "cx", "sx", 0, 
		0, "-sx", "cx", 0, 
		0, 0, 0, 1
	])
	m2 = 矩阵.S矩阵4([
		"cy", 0, "-sy", 0,
		0, 1, 0, 0,
		"sy", 0, "cy", 0,
		0, 0, 0, 1
	])
	m3 = 矩阵.S矩阵4([
		"cz", "sz", 0, 0,
		"-sz", "cz", 0, 0,
		0, 0, 1, 0,
		0, 0, 0, 1
	])
	print(m1 * m2, m1 * m3, m2 * m3, m1 * m2 * m3, sep = '')
def main():
	f相乘()
if __name__ == "__main__":
	main()